package com.example.controller;

import com.example.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class UserController {

    @Resource
    private UserService userService;

    // http://localhost:8080/hello
    @GetMapping("hello")
    public String hello() {
        return userService.hello();
    }

}
